var ngModel = require( "./main.js" ).ng;
ngModel.config(["$stateProvider", 
				 "$urlRouterProvider", 
				 "$locationProvider",
				 "$httpProvider",
				 "$qProvider",
				 "$compileProvider",
        function ($stateProvider, 
        		  $urlRouterProvider,
        		  $locationProvider, 
        		  $httpProvider, 
        		  $qProvider,
        		  $compileProvider) {

        	$compileProvider.preAssignBindingsEnabled(true);//针对1.5.X版本和1.6.X版本的component问题
            $qProvider.errorOnUnhandledRejections(false);//针对1.5.9版本和1.6.+版本的$q的问题

            $locationProvider.hashPrefix('').html5Mode(false);
            $urlRouterProvider.otherwise('/test');

            $stateProvider
                .state('test', {
                    url: "/test",
                    template: '<test></test>'
                });
}]);